import requests

class OAuth2Client:
    def __init__(self, client_id, client_secret):
        self.client_id = client_id
        self.client_secret = client_secret

    def get_access_token(self, code):
        # 调用OAuth2 API
        return "access_token"